package Homework4;

import java.util.*;

public class Homework4_5_TestTime {
    public static void main(String[] args) {
        Scanner input = new Scanner(System.in);
        long elapsedTime1 = input.nextLong();
        long elapsedTime2 = input.nextLong();
        Time time1 = new Time();
        time1.setTime(elapsedTime1);
        System.out.println("Hour: " + time1.getHour() + " Minute: " +
                time1.getMinute() + " Second: " + time1.getSecond());
        Time time2 = new Time(elapsedTime2);
        System.out.println("Hour: " + time2.getHour() + " Minute: " +
                time2.getMinute() + " Second: " + time2.getSecond());
    }
}
